package com.example.mapper;

import com.example.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * *****************************************************************************
 *
 * @ClassName: UserMapper
 * @Description: 请添加对此类的描述
 * @author: chenx
 * @time: 2021/4/7 17:07
 * ****************************************************************************
 */
@Mapper
@Repository
public interface UserMapper {

    /**
     * 注册，插入数据
     * @param user
     */
    void insertUser(User user);

    /**
     * 根据邮箱查询
     * @param email
     * @return
     */
    User queryByEmail(String email);
}
